/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ecommerce.model;

import java.io.Serializable;
import javax.persistence.*;

/**
 *
 * @author Hadi
 */
@Embeddable
public class Address implements Serializable {
   
    @Column (name="street", nullable=true)
    private String street;

    @Column (name="provinsi", nullable=true)
    private String provinsi;

    @Column (name="town", nullable=true)
    private String town;

    @Column (name="kode_pos", nullable=true)
    private int kodePos;

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getProvinsi() {
        return provinsi;
    }

    public void setProvinsi(String provinsi) {
        this.provinsi = provinsi;
    }

    public String getTown() {
        return town;
    }

    public void setTown(String town) {
        this.town = town;
    }

    public int getKodePos() {
        return kodePos;
    }

    public void setKodePos(int kodePos) {
        this.kodePos = kodePos;
    }

    
}
